package cn.hwl.springframework.beans.factory.config;

import cn.hwl.springframework.beans.BeansException;
import cn.hwl.springframework.beans.factory.BeanFactory;

/**
 * @author :  HuangWL
 * @date :    2022/4/27 15:32
 * 自动化处理Bean工厂配置的接口，
 */
public interface AutowireCapableBeanFactory extends BeanFactory {
    /**
     * 执行 BeanPostProcessors 接口实现类的 postProcessBeforeInitialization 方法

     */
    Object applyBeanPostProcessorsBeforeInitialization(Object existingBean, String beanName) throws BeansException;

    /**
     * 执行 BeanPostProcessors 接口实现类的 postProcessorsAfterInitialization 方法
     *

     */
    Object applyBeanPostProcessorsAfterInitialization(Object existingBean, String beanName) throws BeansException;

}
